package com.lgx.common.util;

import com.lgx.common.entity.GatewayConfig;


/**
 * 存放常量
 * 
 * @author hezhuo
 *
 */
public class Constants {

	/**
	 * 设置文件上传路径
	 */
	public static final String UPLOAD_PATH = "D:\\temp";
	
	/**
	 * 设置文件上传大小
	 */
	public static final int UPLOAD_MAX_SIZE = 100 * 1024 * 1024;
	
	/**
	 * 默认商品路径
	 */
	public static final String PRODUCT_URL = "page/gateway/product/product.jsp";
	
	/**
	 * 默认搜索路径
	 */
	public static final String SEARCH_URL = "page/gateway/search.jsp";
	
	
	/**
	 * 商品搜索页面每页显示的记录数
	 */
	public static final int SEARCH_RESULT_PAGE_SIZE = 20;
	
	
	/**
	 * 上周热兑换排好记录数
	 */
	public static final int LAST_WEEK_HOT_PRODUCT_SIZE = 4;
	
	/**
	 * 菜单集合
	 */
//	private static List<Module> menuList = new ArrayList<Module>();
	
	/**
	 * 菜单对应UrlMap集合
	 * @return
	 */
//	public static Map<String,Module> moduleUrls = new HashMap<String,Module>();
	
	/**
	 * 短信URl
	 * @return
	 */
	public static String smsUrl = "http://kydx.gotoip1.com/smsapi/sms.php";
	
	/**
	 * 发送短信用户名
	 * @return
	 */
	public static String smsUsername = "一卡淘";
	
	/**
	 * 发送短信密码
	 * @return
	 */
	public static String smsPassword = "123321";
	
	public static GatewayConfig gatewayConfig;
	
	public static long PROPERTYCOLOR = 1;
	
	public static long PROPERTYCLOTHESIZE = 2;
	
	public static long PROPERTYSHOESIZE = 3;
	
	
	public static final String DELETE_CART_PRODUCT_URL = "";  
	
	public static final String SHOW_CART_URL = "page/management/member/member_welcome.jsp?url=/member/queryShoppCart.do";

	public static final String UPDATE_BRAND_URL = "page/gateway/admin/brand/UpdateBrand.jsp";
	
	public static final String BRAND_LIST_URL = "page/gateway/admin/brand/BrandList.jsp";
	
	public static final String UPDATE_SUPPLIER_URL = "page/gateway/admin/supplier/UpdateSupplier.jsp";
	
	public static final String SUPPLIER_LIST_URL = "page/gateway/admin/supplier/SupplierList.jsp";
	
	public static final String UPDATE_PRODUCT_URL = "page/gateway/admin/product/UpdateProduct.jsp";
	
	public static final String PRODUCT_LIST_URL = "page/gateway/admin/product/ProductList.jsp";
	
	public static final int SUPPLIER_LIST_SIZE = 20;
	
	public static final int BRAND_LIST_SIZE = 20;
	
	public static final int PRODUCT_LIST_SIZE = 20;
	
	public static final int RELATED_PRODUCT_SIZE = 18;
}
